package org.pp.mapper;

import org.apache.ibatis.annotations.Param;
import org.pp.entity.PpGoodsSku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.pp.vo.MiniappOrderItemVo;

import java.util.List;

/**
 * <p>
 * 具体商品sku Mapper 接口
 * </p>
 *
 * @author haima
 * @since 2024-06-09
 */
@Mapper
public interface PpGoodsSkuMapper extends BaseMapper<PpGoodsSku> {


    List<MiniappOrderItemVo> listOrderItemByCartId(@Param("cartIds") List<Long> cartIds);

    boolean cutStock(Long cartId);
}
